import React from 'react';

export default ({ number}) => {
  const stars = [];
  for(let i = 0; i < 5; i++){
    stars.push(<i key={i} style={{ fontSize: '0.24rem' }} className="crmiconfont crmicon-star_off text-warn" />)
  }
  if(number === 0){
    return stars;
  }
  for (let i = 0; i < number; i++) {
      stars[i] = <i key={i} style={{ fontSize: '0.24rem' }} className="crmiconfont crmicon-xing text-warn" />;
  }
  return stars;
};
